|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary
org.eclipse.vtp.framework.util.ConfigurationDictionary
public class ConfigurationDictionary
Implementation of a ConfigurationAdmin dictionary that can be loaded and saved to and from an XML structure..
| Constructor Summary | |
|---|---|
ConfigurationDictionary()
Creates a new ConfigurationDictionary. |
|
ConfigurationDictionary(org.w3c.dom.Element configuration)
Creates a new ConfigurationDictionary. |
|
ConfigurationDictionary(java.lang.String pid)
Creates a new ConfigurationDictionary. |
|
ConfigurationDictionary(java.lang.String pid,
java.lang.String factoryPid)
Creates a new ConfigurationDictionary. |
|
ConfigurationDictionary(java.lang.String pid,
java.lang.String factoryPid,
java.lang.String bundleLocation)
Creates a new ConfigurationDictionary. |
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object left,
java.lang.Object right)
|
java.util.Enumeration |
elements()
|
java.lang.Object |
get(java.lang.Object key)
|
java.lang.String |
getBundleLocation()
Returns the value of the "service.bundleLocation" property. |
java.lang.String |
getFactoryPid()
Returns the value of the "service.factoryPid" property. |
java.lang.String |
getPid()
Returns the value of the "service.pid" property. |
boolean |
isEmpty()
|
java.util.Enumeration |
keys()
|
boolean |
load(org.w3c.dom.Element configuration)
Loads the data from the supplied element into this dictionary. |
static ConfigurationDictionary[] |
loadAll(org.w3c.dom.Element configurations)
Loads all the data from the supplied element into a new array. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
|
java.lang.Object |
remove(java.lang.Object key)
|
org.w3c.dom.Element |
save(org.w3c.dom.Document document)
Converts the contents of this dictionary to an XML structure. |
static org.w3c.dom.Element |
saveAll(org.w3c.dom.Document document,
ConfigurationDictionary[] dictionaries)
Converts the contents of all the supplied dictionaries to an XML structure. |
void |
setBundleLocation(java.lang.String bundleLocation)
Sets the value of the "service.bundleLocation" property. |
void |
setFactoryPid(java.lang.String factoryPid)
Sets the value of the "service.factoryPid" property. |
void |
setPid(java.lang.String pid)
Sets the value of the "service.pid" property. |
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public ConfigurationDictionary()
public ConfigurationDictionary(java.lang.String pid)
pid - The PID of this dictionary.
public ConfigurationDictionary(java.lang.String pid,
java.lang.String factoryPid)
pid - The PID of this dictionary.factoryPid - The factory PID of this dictionary.
public ConfigurationDictionary(java.lang.String pid,
java.lang.String factoryPid,
java.lang.String bundleLocation)
pid - The PID of this dictionary.factoryPid - The factory PID of this dictionary.bundleLocation - The bundle location of this dictionary.
public ConfigurationDictionary(org.w3c.dom.Element configuration)
throws java.lang.NullPointerException
configuration - The configuration data for this dictionary's
properties.
java.lang.NullPointerException - If the supplied configuration is
null.| Method Detail |
|---|
public static ConfigurationDictionary[] loadAll(org.w3c.dom.Element configurations)
configurations - The configurations data to load.
public static org.w3c.dom.Element saveAll(org.w3c.dom.Document document,
ConfigurationDictionary[] dictionaries)
document - The document to use to create the XML structure.dictionaries - The dictionaries to save.
null if the supplied document was
null.public java.lang.String getPid()
public java.lang.String getFactoryPid()
public java.lang.String getBundleLocation()
public void setPid(java.lang.String pid)
pid - The value of the "service.pid" property.public void setFactoryPid(java.lang.String factoryPid)
factoryPid - The value of the "service.factoryPid" property.public void setBundleLocation(java.lang.String bundleLocation)
bundleLocation - The value of the "service.bundleLocation" property.public boolean load(org.w3c.dom.Element configuration)
configuration - The configuration data to load or null
to clear this dictionary.
public org.w3c.dom.Element save(org.w3c.dom.Document document)
document - The document to use to create the XML structure.
null if the supplied document was null.public boolean isEmpty()
isEmpty in class java.util.Dictionarypublic int size()
size in class java.util.Dictionarypublic java.util.Enumeration keys()
keys in class java.util.Dictionarypublic java.util.Enumeration elements()
elements in class java.util.Dictionarypublic java.lang.Object get(java.lang.Object key)
get in class java.util.Dictionary
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in class java.util.Dictionarypublic java.lang.Object remove(java.lang.Object key)
remove in class java.util.Dictionary
public int compare(java.lang.Object left,
java.lang.Object right)
compare in interface java.util.Comparator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||